package entitys;

import java.io.Serializable;

public class User extends Human implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String userId; // username
	String password; // password
	int status; // logged in = 1, logged off = 0
	
	public User(String userId,String password,String fname,String lname,String address,String phone, String email,String id,String birth)
	{
		super(fname,lname,address,phone,email,id,birth);
		this.userId=userId;
		this.password=password;
	}
	
	
	
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}


	public int login() {
		return 1;
	}
	
	public int logout() {
		return 0;
	}

}
